package entity;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.geom.Vector2f;

import animation.MacAnimation;

public class Entity {

	public Vector2f position;
	public float size;

	MacAnimation animation;
			
	public Entity(Vector2f position)
	{
		this.position = position;
	}
	public void render(GameContainer container, Graphics g) throws SlickException
	{	

	}
	public void update(GameContainer container, int delta) throws SlickException
	{		
	}
	public Vector2f getCenter()
	{
		return new Vector2f(position).add(new Vector2f(size/2, size/2));
	}
	public boolean isOn(Vector2f v)
	{
		if(v.distance(position) < size/2)
			return true;
		return false;
	}
}
